package com.dhcc.sds.standard.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;
import com.dhcc.sds.standard.entity.SdsStandDicEntity;
import com.dhcc.sds.standard.entity.SdsStandDicsubEntity;

/**
 * 项目标准化字典子项表数据服务层接口
 * 
 * @ClassName: ISdsStandDicsubService
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:09:53
 */
public interface ISdsStandDicsubService  extends IBaseService<SdsStandDicsubEntity> {
	
    List<SdsStandDicsubEntity> page(Page<SdsStandDicsubEntity> page,Map<String, Object> map);
    List<SdsStandDicsubEntity> list(Map<String, Object> map);

    /**
     * 查询标准药品名称
     * @param page
     * @param params
     * @return
     */
    List<SdsStandDicsubEntity> pageByDrug(Page<SdsStandDicsubEntity> page, Map<String, Object> params);

    /**
     * 根据数据源获取项目标准化字典子项列表
     * @param page
     * @param params
     * @return
     */
    List<SdsStandDicsubEntity> pageByDic(Page<SdsStandDicsubEntity> page, Map<String, Object> params, List<SdsStandDicEntity> standDicEntitys);

    List<SdsStandDicsubEntity> listByDic(List<SdsStandDicEntity> standDicEntitys);

    List<ZTreeNode> getEntityTree(String sourceDesc);

    SdsStandDicsubEntity getByDicAndDicsubDesc(Long dicId, String dicsubDesc);
}
